//
//  Photo.m
//  一键车讯
//
//  Created by 江玉元 on 14/11/5.
//  Copyright (c) 2014年 lanou.3g.com. All rights reserved.
//

#import "Photo.h"

@implementation Photo


- (id)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.image = [dic objectForKey:@"cover"];
        self.name = [dic objectForKey:@"name"];
        NSString *str = [[dic valueForKey:@"photoCount"] description];
        self.count = [NSString stringWithFormat:@"%@张", str];
        self.Id = [dic objectForKey:@"id"];
    }
    return self;
}

- (void)dealloc
{
    [_image release];
    [_name release];
    [_count release];
    [_Id release];
    [super dealloc];
}

@end
